package cn.yunhe.util;

import cn.yunhe.entity.XsRequset;
import cn.yunhe.services.IXsTreamServices;
import cn.yunhe.services.impl.XsTreamServices;


import java.util.Map;

/**
 * Created by Administrator on 2018/5/25.
 */
public  class StringToMap {
    //选项转换成map m
    public static Map<String, String> stringToMap(String xml){
                IXsTreamServices iXsTream=new XsTreamServices();
        return iXsTream.xmlToObjext(xml,XsRequset.class).getChoiceList();
    }
    //图片转换成map
    public static Map<String,String> imgToMap(String xml){
        IXsTreamServices iXsTream=new XsTreamServices();
        return iXsTream.xmlToObjext(xml,XsRequset.class).getChoiceImgList();
    }
}
